<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>从MongoDB查询数据出来展示</title>
  <style type="text/css">
    table,td{
      border: 1px solid lightseagreen;
      border-collapse: collapse;
    }
  </style>
</head>
<body>
    <%=msg%>
    <hr/>
    <table>
    <%
        for(var i=0;i<dataList.length;i++){
            var item = dataList[i];
    %>
        <tr>
          <td><%=item.name%></td>
          <td><%=item.age%></td>
          <td><%=item.sex%></td>
        </tr>
    <%
        }
    %>
    </table>
</body>
</html>